package com.hu.bgp.framework;

import com.hu.bgp.framework.clientapi.ClientToServerMessage;
import com.hu.bgp.framework.GameContext;

/**
 * De interface om een server via een andere classloader te benaderen,
 * geimplementeerd door Server.
 * 
 * @author ejvos
 */
public interface ServerFacade
{
	public enum GameState{
		initializing,waitingforplayers,running,finished
	}
	public GameState getGameState();
	public void addGameStateListener(GameStateListener listener);
	public void handleMessage(ClientToServerMessage message);
	public GameContext getGameContext();
	public void setGUID(String GUID);
	public String getGUID();
	
	public void addPlayer(Player player);
	public void removePLayer(Player player);
}